import request from '@/utils/request'

// 查询运动会届列表
export function listInformation(query) {
  return request({
    url: '/sport/information/list',
    method: 'get',
    params: query
  })
}

// 查询运动会届详细
export function getInformation(sportId) {
  return request({
    url: '/sport/information/' + sportId,
    method: 'get'
  })
}

// 新增运动会届
export function addInformation(data) {
  return request({
    url: '/sport/information',
    method: 'post',
    data: data
  })
}

// 修改运动会届
export function updateInformation(data) {
  return request({
    url: '/sport/information',
    method: 'put',
    data: data
  })
}

// 删除运动会届
export function delInformation(sportId) {
  return request({
    url: '/sport/information/' + sportId,
    method: 'delete'
  })
}
